{auth}
{insert name="user"}
{if isset($user) && !empty( $user )}
{$user.login}
<form method="POST" action="/auth">
<input type="hidden" name="action" value="logout" />
<input type="submit" class="logout" value="logout" />
</form>
{else}
<form method="POST" action="/auth">
<input type="hidden" name="action" value="login" />
<input type="text" name="login" value="" /><br>
<input type="password" name="password" value="" /><br>
<input type="submit" class="login" value="login!" />
</form>

{/if}